﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using simpleHotel.Business;

namespace simpleHotel.Web.UserControls
{
    public partial class ucTourNotebook : System.Web.UI.UserControl
    {
        Provinces province = new Provinces();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                loadData();
            }
        }

        private void loadData()
        {
            dlTourNotebook.DataSource = province.getProvinces();
            dlTourNotebook.DataBind();
        }

        //protected void dlTourNotebook_SelectedIndexChanged(object sender, EventArgs e)
        //{
        //    string curlink = Request.RawUrl;

        //    if (curlink.Contains("/Home.aspx"))
        //    {
        //        //tourListID.Attributes["class"] = "current";
        //    }
        //}

        //protected void dlTourNotebook_OnItemDataBound(object sender, EventArgs e)
        //{
        //    if (e.Item.ItemType == ListItemType.Item)
        //    {
        //        if (Convert.ToBoolean(hdn.Value) == true)
        //        {
        //            dLMessages.ItemStyle.BackColor = Color.FromName("#A0FE96");
        //        }
        //    }

        //}
    }
}